package h0709;

import java.util.Scanner;

public class EncryptWord {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String s = sc.nextLine();
        boolean matches = s.matches("[aeiouAEIUO]");
        if (matches){
            String res = s.replaceAll("[aeiouAEIUO]", "*");
            System.out.println(res);
        }else {//如果不匹配，首尾交换。
            char end=s.charAt(s.length()-1);
            char begin = s.charAt(0);
            System.out.println(end + s.substring(1, s.length() - 1) + begin);
        }
    }
}
